﻿using System;
using System.Xml;
using Aulac.Global.Enums; using Aulac.Global.Data; using Aulac.Global.Common; using Aulac.Global.Xml;
using Aulac.Rsc;

namespace Aulac.Rsc.Ems
{
    /// <summary>
    /// Thông tin tùy chọn hệ thống
    /// </summary>
	public class CompanyInfo
	{
        XmlDataDocument xmlCompany = null;

        XmlElement mXmlCmpElm = null;
        /// <summary>
        /// Khởi tạo
        /// </summary>
		public CompanyInfo(XmlDataDocument xmlCompany)
        {
            this.xmlCompany = xmlCompany;
            if (XmlProcess.IsEmpty(xmlCompany))
                return;
            mXmlCmpElm = XmlProcess.GetChildNode(XmlProcess.GetDataAreaElm(xmlCompany), tagSystem.Company.COMPANYINFO);
        }

        #region Properties
        public XmlElement XmlCmpElm
        {
            get { return mXmlCmpElm; }
        }
        /// <summary>
        /// Id benh vien
        /// </summary>
        public string HspPrkID
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.HspPrkID); }
        }
        /// <summary>
        /// Ma BV
        /// </summary>
        public string HspID
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.HspID); }
        }
        /// <summary>
        /// Ten BV
        /// </summary>
        public string HspName
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.HspName); }

        }
        /// <summary>
        /// Dia chi
        /// </summary>
        public string AddrLine
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.AddrLine); }
        }
        /// <summary>
        /// Cap quan ly
        /// </summary>
        public string MngLevel
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.MngLevel); }

        }
        /// <summary>
        /// Ma so thue
        /// </summary>
        public string TaxCode
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.TaxCode); }
        }
        /// <summary>
        /// So TK
        /// </summary>
        public string AccountNo
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.AccountNo); }
        }

        /// <summary>
        /// So dien thoai
        /// </summary>
        public string Phone
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.Phone); }

        }
        /// <summary>
        /// Fax
        /// </summary>
        public string Fax
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.Fax); }
        }
        /// <summary>
        /// Email
        /// </summary>
        public string Email
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.Email); }
        }
        /// <summary>
        /// Site
        /// </summary>
        public string Website
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.Website); }

        }
        /// <summary>
        /// Hang benh vien
        /// </summary>
        public string RankHsp
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.RankHsp); }

        }
        /// <summary>
        /// Ma don vi Bv
        /// </summary>
        public string InsOffciceCode
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.InsOffciceCode); }

        }
        /// <summary>
        /// Ma tinh, TP
        /// </summary>
        public string InsPrvnCode
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.InsPrvcCode); }
        }
        /// <summary>
        /// Id tinh TP,
        /// </summary>
        public string PrvnPrkID
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.PrvnPrkID); }
        }
        /// <summary>
        /// ID Quan, Huyen
        /// </summary>
        public string DistrictPrkID
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.DistrictPrkID); }
        }


        /// <summary>
        /// ID Phuong xa
        /// </summary>
        public string TownWardPrkID
        {
            get { return XmlProcess.GetValueAtrb(mXmlCmpElm, tagSystem.Company.TownWardPrkID); }

        }
        #endregion

    }
	

			
}
